<!DOCTYPE html>
<html class="x-admin-sm" xmlns="http://www.w3.org/1999/html">
    
    <head>
        <meta charset="UTF-8">
        <title>欢迎页面-X-admin2.2</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="/X-admin/css/font.css">
        <link rel="stylesheet" href="/X-admin/css/xadmin.css">
        <script src="../../js/jquery-3.5.0.js"></script>
        <script src="/X-admin/lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="/X-admin/js/xadmin.js"></script>
        <script src="../../js/product/product-add.js"></script>
        <script src="../../js/product/cuisine-list.js"></script>


    </head>

    <body>
    <div class="layui-fluid">
        <div class="layui-row">
            <form class="layui-form">
                <div class="layui-form-item">
                    <label for="name" class="layui-form-label">
                        <span class="x-red">*</span>产品名称
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="name" name="name" required="" lay-verify="required"
                               autocomplete="off" class="layui-input">
                    </div>
                    <div class="layui-form-mid layui-word-aux">
                        <span class="x-red">*</span>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="normalPrice" class="layui-form-label">
                        <span class="x-red">*</span>正常价
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="normalPrice" name="normalPrice" required="" lay-verify="required"
                               autocomplete="off" class="layui-input">
                    </div>
                    <div class="layui-form-mid layui-word-aux">
                        <span class="x-red">*</span>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="marketPrice" class="layui-form-label">
                        <span class="x-red">*</span>市场价
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="marketPrice" name="marketPrice" required="" lay-verify="required"
                               autocomplete="off" class="layui-input">
                    </div>
                    <div class="layui-form-mid layui-word-aux">
                        <span class="x-red">*</span>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">
                        <span class="x-red">*</span>菜系
                    </label>
                    <div class="layui-input-inline">
                        <select name="cuisineId" id="cuisine">

                            <!--                    这里面的数据应该从数据库里面来,然后将值赋值给下拉菜单-->
                            <!--                        $("#cuisine").html('<option value="1">川菜</option>');-->
                        </select>
                    </div>
                    <div class="layui-form-mid layui-word-aux">
                        <span class="x-red">*</span>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">
                        <span class="x-red">*</span>是否推荐
                    </label>
                    <div class="layui-input-inline">
                        <input type="radio" name="isRecommend" value="1" title="是" checked="">
                        <input type="radio" name="isRecommend" value="0" title="否">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">
                        <span class="x-red">*</span>是否置顶
                    </label>
                    <div class="layui-input-inline">
                        <input type="radio" name="isTop" value="1" title="是" checked="">
                        <input type="radio" name="isTop" value="0" title="否">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">
                        <span class="x-red">*</span>产品图片
                    </label>
                    <div class="layui-input-inline">
                        <button type="button" class="layui-btn" id="test1">上传图片</button>
                        <div class="layui-upload-list">
                            <img class="layui-upload-img" id="demo1" src="/img/9_8hh4.jpg" width="100" height="100">
                        </div>

                    </div>
                    <div class="layui-form-mid layui-word-aux">
                        <span class="x-red">*</span>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">
                        <span class="x-red">*</span>产品描述
                    </label>
                    <div class="layui-input-inline">
                        <textarea name="content" id="content" style="display: none;"></textarea>
                    </div>
                    <div class="layui-form-mid layui-word-aux">
                        <span class="x-red">*</span>
                    </div>
                </div>
                <div class="layui-form-item">

                    </label>
                    <button class="layui-btn" lay-filter="add" lay-submit="">
                        增加
                    </button>
                </div>
            </form>
        </div>
    </div>

    </body>
</html>